package com.cy.jt.security.controller;

import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class PageController{

 @RequestMapping("/")
 public String toIndex(HttpServletRequest request){
  String username=request.getParameter("username");
  System.out.println(username);
  System.out.println("toIndex()");
  return "redirect:/index.html";
 }
}
